/**
 * @author fenglei.you
 */
Me.Button=function(options){
	Me.Util.propertySet.apply(this,arguments);
	
	this.text=options.text;
	this.textFont=options.textFont;
	this.textAlign=options.textAlign;
}
Me.Button.prototype.customePaint=function(context){
	//Me.Util.paint.apply(this,arguments);
	if(this.text){
		var pos = Me.Util.mesureText(this,this.text,this.textAlign,context);
		
		context.save();
		//context.font=this.textFont;
		//context.fillStyle = "blue";
		context.fillText(this.text,pos.x,pos.y);		
		context.restore();
	}
	Trace.log("button paint");
}





